home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 50
/
Volume 50 - JOGO DISK .iso
/
Games
/
jumpingrope.swf
/
scripts
/
frame_3
/
DoAction.as
< prev
Wrap
Text File
|
2007-10-01
|
2KB
|
63 lines
function soundOn()
{
soundon = "yes";
_root.startSound = new Sound(this);
_root.startSound.attachSound("startSoundM");
_root.hitAfterSound = new Sound(this);
_root.hitAfterSound.attachSound("hitAfterSoundM");
_root.jumpSound = new Sound(this);
_root.jumpSound.attachSound("jumpSoundM");
_root.hitSound = new Sound(this);
_root.hitSound.attachSound("hitSoundM");
_root.downSound = new Sound(this);
_root.downSound.attachSound("downSoundM");
_root.buttonSound = new Sound(this);
_root.buttonSound.attachSound("buttonSoundM");
_root.readySound = new Sound(this);
_root.readySound.attachSound("readySoundM");
_root.levelClearSound = new Sound(this);
_root.levelClearSound.attachSound("levelClearSoundM");
_root.gameOverSound = new Sound(this);
_root.gameOverSound.attachSound("gameOverSoundM");
_root.titleSound = new Sound(this);
_root.titleSound.attachSound("titleSoundM");
_root.backSound = new Sound(this);
_root.backSound.attachSound("backSoundM");
_root.backSound.setVolume(50);
if(nowF == "title")
{
_root.titleSound.start(0,999);
}
else if(nowF == "levelClear")
{
_root.levelClearSound.start(0,999);
}
else if(nowF == "main")
{
_root.backSound.start(0,999);
}
}
function soundOff()
{
soundon = "no";
delete _root.startSound;
delete _root.hitAfterSound;
delete _root.jumpSound;
delete _root.hitSound;
delete _root.downSound;
delete _root.buttonSound;
delete _root.readySound;
delete _root.gameOverSound;
_root.backSound.stop();
delete _root.backSound;
_root.titleSound.stop();
delete _root.titleSound;
_root.levelClearSound.stop();
delete _root.levelClearSound;
}
nowF == "noting";
trace("\n");
trace("-------------------------");
trace("Start : opening");
_root.soundOn();